@extends('admin.formLayout')
@if(isset($id))
@section('title','修改主题')
@section('barName','修改主题')
    @else
        @section('title','增加主题')
        @section('barName','增加主题')
    @endif

@section('content')
<form class="layui-form" @if(isset($id)) action="{{route('admin.theme_update')}}" @else action="{{route('admin.theme_store')}}" @endif method="post">
    {{csrf_field()}}
    @if(isset($id))
 <input type="hidden" name="id" value="{{$id}}">
    @endif
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required"  value="{{$model->name or ''}}" autocomplete="off" placeholder="请输入主题名称" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="form">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
@endsection